import { openBuildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
    //树形列表数据接口
    getTreeList: {
        url: '/adminc/v1/systemResource_manage/b_sys_source_sort/get_source_sort_list',
        method: 'get'
    },
    getTableList: {
        url: '/adminc/v1/systemResource_manage/b_sys_source/get_source_list',
        method: 'get'
    },
    //新增资源分类 
    addSystemSource: {
        url: '/adminc/v1/systemResource_manage/b_sys_source_sort/create_source_sort',
        method: 'post'
    },
    //修改资源分类
    editSystemSource: {
        url: '/adminc/v1/systemResource_manage/b_sys_source_sort/update_source_sort',
        method: 'put'
    },
    //删除资源分类
    deleteSystemSource: {
        url: '/adminc/v1/systemResource_manage/b_sys_source_sort/delete_source_sort',
        method: 'delete'
    },
    //删除表格行--资源
    deleteTableRow: {
        url: '/adminc/v1/systemResource_manage/b_sys_source/delete_source',
        method: 'delete'
    },
    //下载资源包
    downloadSource: {
        url: '/adminc/v1/systemResource_manage/b_sys_source/source_download',
        method: 'post'
    },
    //新增系统资源
    addSource: {
        url: '/adminc/v1/systemResource_manage/b_sys_source/create_source',
        method: 'post'
    },
    //修改系统资源
    editSource: {
        url: '/adminc/v1/systemResource_manage/b_sys_source/update_source',
        method: 'put'
    }
}

export default openBuildService(settings)